#include "Pipe.hpp"

int main()
{
    Fifo ff;
    ff.Build();
    ff.Open(ForRead);
    while (true)
    {
        std::string msg;
        int n = ff.Read(&msg);
        if (n > 0)
        {
            std::cout << msg << std::endl;
        }
        else
        {
            break;
        }
    }
    ff.Delete();
    return 0;
}